package com.atguigu.gmall.list.client;

import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: 李旭
 * @create: 2021-07-17 14:22
 **/
@FeignClient(name = "service-list")
public interface ListFeignClient {

    //更新热度
    @PutMapping("/api/list/inner/hotScore/{skuId}")
    public void hotScore(@PathVariable Long skuId);

    //开始搜索
    @PostMapping("/api/list")
    public SearchResponseVo list(@RequestBody SearchParam searchParam);
}
